package com.cll.learn.rpc.common.dto;

import com.cll.learn.rpc.common.enums.ResponseCodeEnum;
import lombok.*;

/**
 * 描述信息:
 * 响应结果封装
 * @author CLL
 * @version 1.0
 * @date 2020/9/14 15:29
 */
@NoArgsConstructor
@ToString
@RequiredArgsConstructor
@Getter
public class RpcResponse<T> {
    /**
     * 响应ID
     */
    @NonNull
    private String responseId;
    /**
     * 请求ID
     */
    @NonNull
    private String requestId;
    /**
     * 响应请求的状态信息
     */
    @NonNull
    private ResponseCodeEnum responseCodeEnum;
    /**
     * 响应数据
     */
    @NonNull
    private T data;
}